package com.ttxs.generator.output.other;

import com.ttxs.generator.engine.CustomFreemarker;
import com.ttxs.generator.output.Output;

import java.io.File;
import java.io.IOException;

public class PomXml implements Output {
    @Override
    public void write(CustomFreemarker templateEngine) throws IOException {
        String javaProjectPath = templateEngine.formBean().getJavaProjectPath();
        File pomXml = new File(javaProjectPath + File.separator + "pom.xml");
        templateEngine.outputFile(pomXml, templateEngine.customMap(), "templates/pom.xml.ftl");
    }
}
